@extends('layout/wap2')
@section('headcss')
@stop
@section('content')
    <div class="search-content">
        <dl class="tab search-tab">
            <dd @if (isset($typeid) && $typeid==0) class="active" @endif  onclick="searchtype(this)" value="0"><a style="display:block" href="javascript:;">全部</a></dd>
            <dd  @if (isset($typeid) && $typeid==1) class="active" @endif onclick="searchtype(this)" value="1"><a style="display:block" href="javascript:;">寻找老友</a></dd>
            <dd  @if (isset($typeid) && $typeid==2) class="active" @endif onclick="searchtype(this)" value="2"><a style="display:block" href="javascript:;">寻找战友</a></dd>
            <dd  @if (isset($typeid) && $typeid==3) class="active" @endif onclick="searchtype(this)" value="3"><a style="display:block" href="javascript:;">家寻亲人</a></dd>
            <dd  @if (isset($typeid) && $typeid==4) class="active" @endif onclick="searchtype(this)" value="4"><a style="display:block" href="javascript:;">亲人寻家</a></dd>
            <dd  @if (isset($typeid) && $typeid==5) class="active" @endif onclick="searchtype(this)" value="5"><a style="display:block" href="javascript:;">台海寻人</a></dd>
            <dd  @if (isset($typeid) && $typeid==6) class="active" @endif onclick="searchtype(this)" value="6"><a style="display:block" href="javascript:;">海外寻人</a></dd>
        </dl>
        <ul class="search-list container" id="searchbox">
            @if(!empty($defaultinfos))
                @foreach($defaultinfos as $v)
                    <li><a href="/xrdt/{{$v['id']}}.html">
                        <div class="l">
                            <img src="{{URL::asset('img/'.$v['miss_pic'])}}" alt="" width="50" height="60"/>
                            <div class="text">
                                <h1>{{$v['miss_name']}} <span>{{$v['Name']}}</span></h1>
                                <p class="ov"> 寻人编号：{{$v['id']}}</p>
                                <p class="ov"> 发布日期：{{$v['create_time']}}</p>
                            </div>
                        </div>
                            <div class="r">&gt;</div>
                        </a>
                    </li>
                @endforeach
            @endif
        </ul>
        <div id="page">
            <ul>
                @if(!empty($defaultinfos))
                    {!!  $defaultinfos->links() !!}
                @endif
            </ul>
        </div>
    </div>
    @stop
@section('js')
    <script src="{{URL::asset('js/wap/findlist.js')}}"></script>
    @stop